package com.example.yuanboot.model.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * testDto
 *
 * @author qingyan 2021-07-05
 */
@Data
@Valid
public class TestDto {

    @NotBlank(message = "姓名不能不能为空")
    @Length(max = 10, message = "姓名长度过长")
    private String name;

    @NotBlank(message = "电话不能不能为空")
    private String phone;
}
